
const path = require('path')
// 注意： ../会抵消前面的路径
const pathStr = path.join('/a','/b/c','../','./d','e')
console.log(pathStr); //a/b/d/e

const pathStr1 = path.join('/a','/b/c','../../','./d','e')
console.log(pathStr1);  ///a/d/e


// 注意：以后涉及到路径拼接的问题就使用path.join()方法不要在用+
fstat.readFile(path.join(__dirname,'../file/1.txt'))
